<template>
  <div id="huihoudiv">
  <el-tabs v-model="activeNameHuihou" @tab-click="tabClick" tab-position="left">
    <el-tab-pane name="HH_BanZiZhengGai">
      <span slot="label">班子整改清单 <i class="el-icon-caret-bottom"></i></span>
      <hh-banzizhenggai :timestamp="subtimestamp" />
    </el-tab-pane>
    <el-tab-pane name="HH_ChengYuanZhengGai">
      <span slot="label">班子成员整改清单 <i class="el-icon-caret-bottom"></i></span>
      <hh-chengyuanzhenggai :timestamp="subtimestamp" :leaders="leaders" />
    </el-tab-pane>
    <el-tab-pane name="HH_TongBao">
      <span slot="label">通报民主生活会情况 <i class="el-icon-caret-bottom"></i></span>
      <hh-tongbao :timestamp="subtimestamp" />
    </el-tab-pane>
    <el-tab-pane name="HH_HuiYiBaoGao" id="hybg">
      <span slot="label">会议情况报告 <i class="el-icon-caret-bottom"></i></span>
      <hh-huiyibaogao :timestamp="subtimestamp" />
    </el-tab-pane>
  </el-tabs>
  </div>
</template>
<script>
import HhTongbao from './hhTongbao.vue'
import HhBanzizhenggai from './hhBanzizhenggai.vue'
import hhHuiyibaogao from './hhHuiyibaogao.vue'
import HhChengyuanzhenggai from './hhChengyuanzhenggai.vue'
export default {
  components: {
    hhHuiyibaogao,
    HhBanzizhenggai,
    HhTongbao,
    HhChengyuanzhenggai
  },
  props: {
    timestamp: '',
    leaders: []
  },
  data () {
    return {
      subtimestamp: '',
      activeNameHuihou: 'HH_BanZiZhengGai',
      huihoudata: {},
      listLoading: false,
      BanziPersonName: '全部',
      pdfpage: 1,
      FujianFilename: '',
      pdfviewersrcFujian: '',
      showPDFVisibleFujian: false
    }
  },
  watch: {
    '$store.state.link_hh' (val) {
      this.activeNameHuihou = this.$store.state.link_hh
    }
    // $refs.tree2.getCurrentNode()
  },
  methods: {
    tabClick () {
      this.subtimestamp = new Date().getTime()
      var params = {Link_hh: this.activeNameHuihou}
      this.$store.commit('tablink_hh', params)
    }
  },
  mounted () {
    this.tabClick()
  }
}
</script>
<style scoped>
.el-form-item{
  margin:0;
}
</style>
<style>
#hybg .el-form-item__content,#pgyj .el-form-item__content{
  font-size:16px;
}
#huihoudiv .el-form-item__label{
  font-size:16px;
}
</style>
